package com.uwantsoft.business.service.domain.user;

import com.uwantsoft.business.service.domain.user.Role;
import com.uwantsoft.business.service.domain.user.User;

import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

/**
 * @author LeiPeichen.
 */
@Entity
@Table(name = "admin")
@PrimaryKeyJoinColumn(name = "user_id")
public class Admin extends User {

    public Role role(){
        return Role.ADMIN;
    }
}
